import Vue from 'vue'
import VueRouter from 'vue-router'
import dhlView from "@/views/DhlView.vue";
import LoginView from "@/views/登录/LoginView.vue";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: '',
        component: LoginView,
    },
    {
        path: '/daohang',
        name: 'dhl',
        component: dhlView,
        children: [
            {
                path: '/homepage',
                name: 'homepage',
                component: () => import('@/views/首页/HomePageView.vue')
            },
            {
                path: '/text2',
                name: 'text2',
                component: () => import('@/views/交易管理/Text2.vue')
            },
            {
                path: '/text',
                name: 'text',
                component: () => import('@/views/交易管理/Text.vue')
            },
            {
                path: '/dispatchtracking',
                name: 'dispatchtracking',
                component: () => import('@/views/交易管理/DispatchTrackingView.vue')
            },
            {
                path: '/jfcl',
                name: 'jfcl',
                component: () => import('@/views/交易管理/JiuFenView.vue')
            },
            {
                path: '/orderrefundxq',
                name: 'orderrefundxq',
                component: () => import('@/views/交易管理/OrderRefundXqView.vue')
            },
            {
                path: '/orderrefund',
                name: 'orderrefund',
                component: () => import('@/views/交易管理/OrderRefundView.vue')
            },
            {
                path: '/goods',
                name: 'goods',
                component: () => import('@/views/商品管理/GoodsListView.vue')
            },
            {
                path: '/classification',
                name: 'classification',
                component: () => import('@/views/商品管理/GoodsClassificationView.vue')
            },
            {
                path: '/orderxq',
                name: 'orderxq',
                component: () => import('@/views/交易管理/OrderXqView.vue')
            },
            {
                path: '/order',
                name: 'order',
                component: () => import('@/views/交易管理/OrderView.vue')
            },
            {
                path: '/homepage',
                name: 'homepage',
                component: () => import('@/views/首页/HomePageView.vue')
            },
            {
                path: '/user',
                name: 'user',
                component: () => import('@/views/客户管理/UserView.vue')
            },
                 {
                path: '/auditXq',
                name: 'auditXq',
                component: () => import('@/views/客户管理/AuditXqView.vue')
            },
            {
                path: '/shops',
                name: 'shops',
                component: () => import('@/views/客户管理/ShopsView.vue')
            },
            {
                path: '/dispose',
                name: 'dispose',
                component: () => import('@/views/客户管理/DisposeView.vue')
            },
            {
                path: '/auditSettled',
                name: 'auditSettled',
                component: () => import('@/views/客户管理/AuditSettledView.vue')
            },
            {
                path: '/settledXq',
                name: 'settledXq',
                component: () => import('@/views/客户管理/SettledXqView.vue')
            },
            {
                path: '/dbs',
                name: 'dbs',
                component: () => import('@/views/客户管理/DBSView.vue')
            },
            {
                path: '/addDBS',
                name: 'addDBS',
                component: () => import('@/views/客户管理/AddDBSView.vue')
            },
            {
                path: '/couriers',
                name: 'couriers',
                component: () => import('@/views/客户管理/CouriersView.vue')
            },
            {
                path: '/auditCouriers',
                name: 'auditCouriers',
                component: () => import('@/views/客户管理/AuditCouriersView.vue')
            },
            {
                path: '/goods',
                name: 'goods',
                component: () => import('@/views/商品管理/GoodsListView.vue')
            },
            {
                path: '/goodxq',
                name: 'goodxq',
                component: () => import('@/views/商品管理/GoodsListXqView.vue')
            },
            {
                path: '/pttz',
                name: 'pttz',
                component: () => import('@/views/平台维护/PTTZView.vue')
            },
            {
                path: '/ggtf',
                name: 'ggtf',
                component: () => import('@/views/平台维护/GGTFView.vue')
            },
            {
                path: '/bzzx',
                name: 'bzzx',
                component: () => import('@/views/平台维护/BZZXView.vue')
            },
            {
                path: '/jbgl',
                name: 'jbgl',
                component: () => import('@/views/平台维护/JBGLView.vue')
            },
            {
                path: '/yjfk',
                name: 'yjfk',
                component: () => import('@/views/平台维护/YJFKView.vue')
            },
            {
                path: '/dropdown',
                name: 'dropdown',
                component: () => import('@/views/系统设置/DropdownView.vue')
            },
            {
                path: '/grsz',
                name: 'grsz',
                component: () => import('@/views/系统设置/GeRenSheZhiView.vue')
            },
            {
                path: '/mgc',
                name: 'mgc',
                component: () => import('@/views/系统设置/MiGanCiView.vue')
            },
            {
                path: '/peisong',
                name: 'peisong',
                component: () => import('@/views/系统设置/PeiSongView.vue')
            },
            {
                path: '/zzhgl',
                name: 'zzhgl',
                component: () => import('@/views/系统设置/ZZHGLView.vue')
            },
            {
                path: '/map',
                name: 'map',
                component: () => import('@/views/客户管理/MapView.vue')
            },
            {
                path: '/couriersXq',
                name: 'couriersXq',
                component: () => import('@/views/客户管理/CouriersXqView.vue')
            },
            {
                path: '/userXq',
                name: 'userXq',
                component: () => import('@/views/客户管理/UserXqView.vue')
            },





        ]
    },
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (about.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
    // }
]

const router = new VueRouter({
    routes
})

export default router
